@layout("/common/_container.html"){
<link href="${ctxPath}/static/css/plugins/summernote/summernote.css" rel="stylesheet">
<link href="${ctxPath}/static/css/plugins/summernote/summernote-bs3.css" rel="stylesheet">
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="WzPrizeInfoForm">

            <input type="hidden" id="prizeId" value="${item.prizeId}">
            <div class="row">
                <div class="col-sm-6">
                    <#input id="title" name="主标题" value="${item.title}"/>
                    <#input id="subtitle" name="副标题" value="${item.subtitle}"/>
                    <#input id="" name="总数量" value="${item.quantity}" disabled="disabled"/>
                    <#input id="" name="剩余库存" value="${item.stock}" disabled="disabled"/>
                    <#input id="fileId" name="封面图id" value="${fileId}"/>
                    <#input id="couponId" name="奖券id" value="${couponId}"/>
                    <#select id="contentType" name="内容类型">
                    <option value="1" ${item.contentType==1?'selected':''}>富文本</option>
                    <option value="2" ${item.contentType==2?'selected':''}>自定义</option>
                </#select>
                </div>

                <div class="col-sm-6">
                    <#select id="label" name="标签">
                        <option value="0" ${item.label==0?'selected':''}>默认</option>
                        <option value="1" ${item.label==1?'selected':''}>特别推荐</option>
                    </#select>
                    <#input id="ratio" name="中奖概率" value="${item.ratio}"/>
                    <#input id="" name="类型" value="${type}" disabled="disabled"/>
                    <!--<#input id="" name="类型" value="${subtype}" disabled="disabled"/>-->
                    <#select id="subtype" name="子类型">
                        <option value="1" ${item.subtype==1?'selected':''}>美食</option>
                        <option value="2" ${item.subtype==2?'selected':''}>小吃</option>
                        <option value="3" ${item.subtype==3?'selected':''}>娱乐</option>
                        <option value="4" ${item.subtype==4?'selected':''}>酒店</option>
                        <option value="5" ${item.subtype==5?'selected':''}>丽人</option>
                        <option value="6" ${item.subtype==6?'selected':''}>旅游</option>
                        <option value="7" ${item.subtype==7?'selected':''}>生活服务</option>
                        <option value="8" ${item.subtype==8?'selected':''}>培训</option>
                    </#select>
                    <#input id="" name="状态" value="${status}" disabled="disabled"/>
                    <#input id="exchangeAmount" name="抵扣积分" value="${exchangeAmount}" underline="true"/>
                </div>
                <div class="col-sm-12">
                    <span>内容</span>
                    <textarea id="content" style="width: 100%;height: 120px;" value="">${item.content}</textarea>
                </div>
                <div class="col-sm-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>奖品详情</h5>
                            <button id="edit" class="btn btn-primary btn-xs m-l-sm" onclick="edit()" type="button">编辑</button>
                            <!--<button id="save" class="btn btn-primary  btn-xs" onclick="save()" type="button">保存</button>-->
                            <div class="ibox-tools">
                                <a class="collapse-link">
                                    <i class="fa fa-chevron-up"></i>
                                </a>
                                <a class="dropdown-toggle" data-toggle="dropdown" href="form_editors.html#">
                                    <i class="fa fa-wrench"></i>
                                </a>
                                <ul class="dropdown-menu dropdown-user">
                                    <li><a href="javascript:0">选项1</a>
                                    </li>
                                    <li><a href="javascript:0">选项2</a>
                                    </li>
                                </ul>
                                <!--<a class="close-link">-->
                                    <!--<i class="fa fa-times"></i>-->
                                <!--</a>-->
                            </div>
                        </div>
                        <div class="ibox-content" id="eg">

                            <div class="click2edit wrapper">
                                ${item.details}
                            </div>

                        </div>
                    </div>
                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="WzPrizeInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="WzPrizeInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/wz/wzPrize/wzPrize_info.js"></script>
<!-- SUMMERNOTE -->
<script src="${ctxPath}/static/js/plugins/summernote/summernote.min.js"></script>
<script src="${ctxPath}/static/js/plugins/summernote/summernote-zh-CN.js"></script>
@}
